package com.bilgeadam.hibernate.model;

import com.bilgeadam.hibernate.model.bll.EmployeeBll;

/**
 * 
 * @author Bora SAYINER
 * @since Nov 16, 2014 5:04:48 PM
 * @version 1.0.0
 */
public final class DbContext {

	private static DbContext INSTANCE;

	private EmployeeBll employees;

	private DbContext() {
		this.employees = new EmployeeBll();
	}

	public static DbContext getInstance() {
		if (INSTANCE == null) {
			INSTANCE = new DbContext();
		}
		return INSTANCE;
	}

	public EmployeeBll getEmployees() {
		return employees;
	}
}
